//
//  main.cpp
//  Mir_1
//
//  Created by 종헌 백 on 12. 1. 10..
//  Copyright (c) 2012년 backssi1@naver.com. All rights reserved.
//

#include <iostream>

using namespace std;

int main()
{
    int i,j,k,n;
    
    do {
        
    cout << "Input Number : ";
    cin >> n;                       //임의의 수 받기
    
    } while( n < 1 );
    
    for ( i = 0 ; i < n ; i++ )
        {

            for ( k = 0 ; k < n - i ; k++ )
                cout << "*" ;
            for ( j = 0 ; j <= 2*i ; j++ )
                cout << " " ;
            for ( k = 0 ; k < n - i ; k++ )
                cout << "*" ;
            
            cout << endl;
        }
    
    for ( i = 0 ; i < n - 1 ; i++ )
        
    {
        for ( k = 0 ; k < 2 + i ; k++ )
            cout << "*" ;
        for ( j = 0 ; j < 2 * ( n - i - 1 ) - 1 ; j++ )
            cout << " " ;
        for ( k = 0 ; k < 2 + i ; k++ )
            cout << "*" ;
        
        cout << endl;
    }
}

